import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/banner_model_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/banner_model_entity.g.dart';

@JsonSerializable()
class BannerModelEntity {
	String? bannerId;
	int? bannerType;//1 新闻 2 外链
	String? coverEnUrl;
	String? coverUrl;
	String? enName;
	String? enWebLink;
	String? name;
	String? newsId;
	String? newsTitle;
	String? newsType;
	int? sort;
	int? status;
	String? webLink;

	BannerModelEntity();

	factory BannerModelEntity.fromJson(Map<String, dynamic> json) => $BannerModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $BannerModelEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}